/********************************************************************
 * Author: DO HOANG HAI
 * Date of Creation: 21/Aug/2007
 * Last modification: 30/Aug/2007
 * 
 * Description: this class represent file Infomation groups of an Item
 * 
 * Status: optimized & Finished
 *******************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace Pbdms.Common.DataObject
{
    /// <summary>
    /// represents file Infomation groups of an Item
    /// </summary>
    public class FileInfo
    {
        public const long MIN_FILE_SIZE = 0;
        /// <summary>
        /// maximum file size: 100,000 KB
        /// </summary>
        public const long MAX_FILE_SIZE = 100000;

        private string id;
        private string location;
        private long size;
        private bool existence;
        private String fileName;

        #region public properties
        public String ID
        {
            get { return id; }
            set { id = value; }
        }
        public String Location
        {
            get { return location; }
            set { location = value; }

        }
        public long Size
        {
            get { return size; }
            set { size = value; }

        }
        public bool Existence
        {
            get { return existence; }
            set { existence = value; }

        }
        public String FileName
        {
            get { return fileName; }
            set { fileName = value; }

        }
        #endregion

        #region Constructor
        public FileInfo() { }
        public FileInfo(String id)
        {
            this.id = id;
           
        }
        public FileInfo(String id, bool existence, String location, String fileName, long size)
        {
            this.id = id;
            this.existence = existence;
            this.location = location;
            this.fileName = fileName;
            this.size = size;
        }
    
        #endregion

        #region private methods
        #endregion

        #region public methods
        #endregion

    }
}
